﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="MyFavor.aspx.cs" Inherits="MyFavor" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <title>我的收藏</title>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">
    <div runat="server" id="DVNoData" visible="false" style="text-align:center">
        <img src="Images/sorry.png" />
        <div id="DVTips" runat="server"><h2>哎呀，你还没有添加任何收藏</h2></div>
    </div>
    <center>
        <asp:GridView ID="GVMyFavor" runat="server" AutoGenerateColumns="False" CellPadding="4"
            ForeColor="#333333" GridLines="None" Font-Bold="false" Width="600px">
            <RowStyle BackColor="#EFF3FB"/>
            <Columns>
                <asp:BoundField DataField="No" HeaderText="No" InsertVisible="False" SortExpression="No">
                    <ItemStyle HorizontalAlign="Right" />
                </asp:BoundField>
                <asp:BoundField DataField="Item" HeaderText="主题" SortExpression="Item">
                    <ItemStyle HorizontalAlign="Left" Wrap="true" Width="400px" />
                </asp:BoundField>
                <asp:BoundField DataField="Major" HeaderText="专业" SortExpression="Major">
                    <ItemStyle Width="60px"/>
                </asp:BoundField>
                <asp:BoundField DataField="TotalViewTimes" HeaderText="点击次数" SortExpression="TotalViewTimes">
                </asp:BoundField>
            </Columns>
            <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
            <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
            <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <EditRowStyle BackColor="#2461BF" />
            <AlternatingRowStyle BackColor="White" />
        </asp:GridView>
    </center>
    <asp:AccessDataSource ID="DSMyFavor" runat="server" 
        DataFile="~/App_Data/RiskManage.mdb" 
        SelectCommand="SELECT FavorList.[No], DataList.Item, DataList.Major, DataList.TotalViewTimes FROM (FavorList INNER JOIN DataList ON FavorList.DataNo = DataList.[No]) WHERE FavorList.EmpID = '?'">
        <SelectParameters>
            <asp:SessionParameter Name="EmpID" SessionField="EmpID" Type="String" />
        </SelectParameters>
    </asp:AccessDataSource>
</asp:Content>

